@extends('admin.layouts.app')
@section('css')
  <link href="{{asset('assets/plugins/responsive-table/css/rwd-table.min.css')}}" rel="stylesheet" type="text/css" media="screen">
@endsection
@section('content')


						<!-- Page-Title -->
						<div class="row">
							<div class="col-sm-12">
                                <div class="btn-group pull-right m-t-15">
                                    <button type="button" class="btn btn-default dropdown-toggle waves-effect waves-light" data-toggle="dropdown" aria-expanded="false">Settings <span class="m-l-5"><i class="fa fa-cog"></i></span></button>
                                    <ul class="dropdown-menu drop-menu-right" role="menu">
                                        <li><a href="#">Action</a></li>
                                        <li><a href="#">Another action</a></li>
                                        <li><a href="#">Something else here</a></li>
                                        <li class="divider"></li>
                                        <li><a href="#">Separated link</a></li>
                                    </ul>
                                </div>

								<h4 class="page-title">Responsive Table</h4>
								<ol class="breadcrumb">
									<li>
										<a href="#">Ubold</a>
									</li>
									<li>
										<a href="#">Tables</a>
									</li>
									<li class="active">
										Responsive Table
									</li>
								</ol>
							</div>
						</div>
						
						
						
						<div class="row">
							<div class="col-sm-12">
								<div class="card-box">

									
									<div class="table-rep-plugin">
										<div class="table-responsive" data-pattern="priority-columns">
											<table id="tech-companies-1" class="table  table-striped">
												<thead>
													<tr>
														<th>ID</th>
														<th data-priority="1">微信昵称</th>
														<th data-priority="3">姓名</th>
														<th data-priority="1">电话</th>
														<th data-priority="3">收货地址</th>
														<th data-priority="3">地理位置</th>
														<th data-priority="3">购买记录</th>
														<th data-priority="6">红包记录</th>
													</tr>
												</thead>
												<tbody>
                        @foreach($list as $v)  
													<tr>
														<th>{{$v->id}}</th>

														<td><a href="{{url('zadmin/users/show',$v->id)}}">{{$v->nickname}}</a></td>
														<td>{{$v->defaultAddress->truename or ''}}</td>
														<td>{{$v->phone}}</td>
														<td>
															<a href="{{url('zadmin/users/address',$v->id)}}">
																<i class="ti-flag"></i><span>收货地址</span>
															</a>	
															</td>
														<td>
															<a href="{{url('zadmin/users/coordinate',$v->id)}}">
															<i class="ti-location-pin"></i><span>地理位置</span>
															</a>
													   </td>
														<td>
															<a href="{{url('zadmin/users/orders',$v->id)}}">
																<i class="ti-receipt"></i><span>购买记录</span>
															</a></td>
														
														<td>
														<a href="{{url('zadmin/users/envelope',$v->id)}}">	
															<i class="ti-envelope"></i><span>红包记录</span>
														</a>	
														</td>
													</tr>
                        @endforeach
													
												</tbody>
											</table>
										</div>
{{$list->links()}}
									</div>

								</div>
							</div>
						</div>
						<!-- end row -->
 @endsection 
               
         

    @section('js')
        <!-- responsive-table--> 
        <script src="{{asset('assets/plugins/responsive-table/js/rwd-table.min.js')}}" type="text/javascript"></script>
    @endsection    

